package com.jwd

import org.apache.log4j.Logger
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.web.support.SpringBootServletInitializer
import org.springframework.web.servlet.ModelAndView
import java.util.*
import javax.swing.text.View
import org.springframework.boot.builder.SpringApplicationBuilder




@SpringBootApplication
class PzxApplication : SpringBootServletInitializer() {

    override fun configure(application: SpringApplicationBuilder): SpringApplicationBuilder {
        return application.sources(PzxApplication::class.java)
    }

    companion object {
        private @JvmStatic val logger = Logger.getLogger(this::class.java)

        @JvmStatic fun main(args: Array<String>) {
            SpringApplication.run(PzxApplication::class.java, *args)
        }
    }
}
